<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script src="lib/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="lib/ckfinder/ckfinder.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#main_big").slideToggle("slow");
});
</script>
</head>

<body style="background:#FFF">
	<div id="main_big" style="display:none">新增新闻资讯</div>
    <div id="main_contents">
    <div id="main_description">描述：新增新闻资讯</div>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#form1").slideDown("slow");
        $(".main_table tr:even").addClass("alt");
		$('#new').click(function(){
			$('#sort').remove();
			$('#e_sort').remove();
			$('#new').hide();
			$('#sort_t').append('<input type="text" name="sort" />');
			$('#e_sort_t').append('<input type="text" name="e_sort" />');
		});
});
</script>
<iframe name="get" style="display:none;"></iframe>
<form id="form1" name="form1" method="post" target="get" style="display:none;" action="?m=News&a=news_news_get" enctype="multipart/form-data">
    <div id="table_c">
    	<table border="0" cellspacing="1" class="main_table">
       		 <tr>
            	<th colspan="2">新增新闻资讯</th>
            </tr>
        	 <tr>
              <td align="right" valign="middle">新闻标题</td>
              <td align="left" valign="middle"><input class="input_c" type="text" name="title" id="title" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">新闻英文标题</td>
              <td align="left" valign="middle"><input class="input_c" type="text" name="e_title" id="e_title" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">新闻分类</td>
              <td align="left" valign="middle" id="sort_t">
              <if condition="!empty($sort)">
              <select name="sort" id="sort" style="width:120px;">
                    <volist name="sort" id="so">
                    <option value="<{$so.sort}>"><{$so.sort}></option>
                    </volist>
              	</select>
                <input type="button" name="new" id="new" value="新增分类" />
                <else />
              <input type="text" name="sort" id="sort" />
              </if>
              </td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">英文分类</td>
              <td align="left" valign="middle" id="e_sort_t">
              <if condition="!empty($sort)">
              <select name="e_sort" id="e_sort" style="width:120px;">
                    <volist name="sort" id="so">
                    <option value="<{$so.e_sort}>"><{$so.e_sort}></option>
                    </volist>
              	</select>
              <else />
              <input type="text" name="e_sort" id="e_sort" />
              </if>
              </td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">作者</td>
              <td align="left" valign="middle"><input class="input_c" type="text" name="author" id="author" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">来源</td>
              <td align="left" valign="middle"><input class="input_c" type="text" name="fromr" id="fromr" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">描述</td>
              <td align="left" valign="middle"><textarea class="input_c" name="overview" id="overview" cols="45" rows="5"></textarea></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">英文描述</td>
              <td align="left" valign="middle"><textarea class="input_c" name="e_overview" id="e_overview" cols="45" rows="5"></textarea></td>
             </tr>
             <tr>
              <td align="right" valign="middle">新闻图片</td>
              <td align="left" valign="middle">网络地址：<input type="text" name="pic" disabled="disabled" id="pic" /> 本地上传：<input name="pic" type="file" /> 暂时不支持网络地址，只支持本地上传</td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">新闻内容</td>
              <td align="left" valign="middle"><textarea class="input_c" name="contents" id="contents" cols="45" rows="5"></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace( 'contents',
{
width:'80%',
height:'500'
});
CKFinder.SetupCKEditor(editor, 'lib/ckfinder/');
</script>
              </td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">新闻英文内容</td>
              <td align="left" valign="middle"><textarea class="input_c" name="e_contents" id="e_contents" cols="45" rows="5"></textarea>
              <script type="text/javascript">
var editor = CKEDITOR.replace( 'e_contents',
{
width:'80%',
height:'500'
});
CKFinder.SetupCKEditor(editor, 'lib/ckfinder/');
</script>
              </td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">浏览量</td>
              <td align="left" valign="middle"><input type="text" name="browse" id="browse" value="0" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">人气</td>
              <td align="left" valign="middle"><input type="text" name="popularity" id="popularity" value="0" /></td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">是否置顶</td>
              <td align="left" valign="middle"><input type="radio" name="top" id="top" value="1" /> 是 <input type="radio" name="top" id="top" value="0" checked="checked" /> 否</td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">是否加粗</td>
              <td align="left" valign="middle"><input type="radio" name="weight" id="weight" value="1" /> 是 <input type="radio" name="weight" id="weight" value="0" checked="checked" /> 否</td>
             </tr>
        	 <tr>
              <td align="right" valign="middle">是否显示</td>
              <td align="left" valign="middle"><input type="radio" name="show_m" id="show_m" value="1" checked="checked" /> 是 <input type="radio" name="show_m" id="show_m" value="0" /> 否</td>
             </tr>

        </table>

</div>
            	  <input type="submit" name="button" id="button" class="main_get" value="提  交" />
        </form>
	</div>


</body>
</html>
